global class ApexScheduledClass Implements Schedulable
            {
                       global void execute(SchedulableContext sc)
                        {
                                    sendmail();
                        }
                        public void sendmail()
                        {
                                    Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
                                    string [] toaddress= New string[]{'csaisagar@gmail.com'};
                                    mail.setTemplateId('00X90000000f4Fd');
                                    mail.setToAddresses(toaddress);
                                    Messaging.sendEmail(New Messaging.SingleEmailMessage[]{mail});
                        }
            }